package com.pzhuweb.sgblog.controller;

import com.pzhuweb.sgblog.domain.entity.Category;
import com.pzhuweb.sgblog.service.CategoryService;
import com.pzhuweb.sgblog.domain.utils.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/category")
public class CategoryController {

    @Resource
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult<?> getCategoryList() {
        return categoryService.getCategoryList();

    }

}
